﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMOOF {
    public class Report {

        private Dictionary<int, double> moments;
        private double averageError;

        public String Name { set; get; }
        public bool IsMixed { set; get; }
        public PDF PDF { set; get; }
        public IntegrationRecord Integral { set; get; }
        public int Index {set; get;}
        public bool Solved { set; get; }
        public int SolverResult { set; get; }
        public bool Primed { set; get; }
        public bool InReport { set; get; }
        public double AverageError {
            set {
                averageError = value;
            }
            get {
                return averageError;
            }
        }

        public void SetMoment(int k) {
            moments[k] = PDF.getMoment(k);
        }

        public Dictionary<int, double> Moments {
            get { return moments; }
        }

        public Report() {
            Solved = false;
            Primed = true;
            moments = new Dictionary<int, double>();
            for (int i = 0; i < 4; i++) {
                moments[i+1] = -1;
                moments[-(i + 1)] = -1;
            }
        }

    }
}
